
/**
 * This is a generated class and is not intended for modification.  
 */
package com.model.valueObjects
{
import com.adobe.fiber.styles.IStyle;
import com.adobe.fiber.styles.Style;
import com.adobe.fiber.styles.StyleValidator;
import com.adobe.fiber.valueobjects.AbstractEntityMetadata;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;
import com.adobe.fiber.valueobjects.IPropertyIterator;
import mx.events.ValidationResultEvent;
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.valueobjects.IModelType;
import mx.events.PropertyChangeEvent;

use namespace model_internal;

[ExcludeClass]
internal class _VOProductMasterEntityMetadata extends com.adobe.fiber.valueobjects.AbstractEntityMetadata
{
    private static var emptyArray:Array = new Array();

    model_internal static var allProperties:Array = new Array("pro_name", "part_number", "serialnumber", "pro_oem", "markup6", "markup4", "markup_type", "markup5", "netprice", "pro_description", "markup2", "markup3", "markup1", "activestatus", "bin_no", "default_price", "model_no", "cre_datetime", "qty_minimum", "stamp_number", "pro_sku", "listprice", "pro_manufacturer", "currency_serialnumber", "cre_userid", "discount", "markcode_serialnumber_fk", "pro_image_fk", "pro_detserialnumber");
    model_internal static var allAssociationProperties:Array = new Array();
    model_internal static var allRequiredProperties:Array = new Array("pro_name", "part_number", "serialnumber", "pro_oem", "markup6", "markup4", "markup_type", "markup5", "netprice", "pro_description", "markup2", "markup3", "markup1", "activestatus", "bin_no", "default_price", "model_no", "cre_datetime", "qty_minimum", "stamp_number", "pro_sku", "listprice", "pro_manufacturer", "currency_serialnumber", "cre_userid", "discount", "markcode_serialnumber_fk", "pro_image_fk", "pro_detserialnumber");
    model_internal static var allAlwaysAvailableProperties:Array = new Array("pro_name", "part_number", "serialnumber", "pro_oem", "markup6", "markup4", "markup_type", "markup5", "netprice", "pro_description", "markup2", "markup3", "markup1", "activestatus", "bin_no", "default_price", "model_no", "cre_datetime", "qty_minimum", "stamp_number", "pro_sku", "listprice", "pro_manufacturer", "currency_serialnumber", "cre_userid", "discount", "markcode_serialnumber_fk", "pro_image_fk", "pro_detserialnumber");
    model_internal static var guardedProperties:Array = new Array();
    model_internal static var dataProperties:Array = new Array("pro_name", "part_number", "serialnumber", "pro_oem", "markup6", "markup4", "markup_type", "markup5", "netprice", "pro_description", "markup2", "markup3", "markup1", "activestatus", "bin_no", "default_price", "model_no", "cre_datetime", "qty_minimum", "stamp_number", "pro_sku", "listprice", "pro_manufacturer", "currency_serialnumber", "cre_userid", "discount", "markcode_serialnumber_fk", "pro_image_fk", "pro_detserialnumber");
    model_internal static var derivedProperties:Array = new Array();
    model_internal static var collectionProperties:Array = new Array();
    model_internal static var collectionBaseMap:Object;
    model_internal static var entityName:String = "VOProductMaster";
    model_internal static var dependentsOnMap:Object;
    model_internal static var dependedOnServices:Array = new Array();

    
    model_internal var _pro_nameIsValid:Boolean;
    model_internal var _pro_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_nameValidationFailureMessages:Array;
    
    model_internal var _part_numberIsValid:Boolean;
    model_internal var _part_numberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _part_numberIsValidCacheInitialized:Boolean = false;
    model_internal var _part_numberValidationFailureMessages:Array;
    
    model_internal var _pro_oemIsValid:Boolean;
    model_internal var _pro_oemValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_oemIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_oemValidationFailureMessages:Array;
    
    model_internal var _markup_typeIsValid:Boolean;
    model_internal var _markup_typeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _markup_typeIsValidCacheInitialized:Boolean = false;
    model_internal var _markup_typeValidationFailureMessages:Array;
    
    model_internal var _pro_descriptionIsValid:Boolean;
    model_internal var _pro_descriptionValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_descriptionIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_descriptionValidationFailureMessages:Array;
    
    model_internal var _bin_noIsValid:Boolean;
    model_internal var _bin_noValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _bin_noIsValidCacheInitialized:Boolean = false;
    model_internal var _bin_noValidationFailureMessages:Array;
    
    model_internal var _default_priceIsValid:Boolean;
    model_internal var _default_priceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _default_priceIsValidCacheInitialized:Boolean = false;
    model_internal var _default_priceValidationFailureMessages:Array;
    
    model_internal var _model_noIsValid:Boolean;
    model_internal var _model_noValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _model_noIsValidCacheInitialized:Boolean = false;
    model_internal var _model_noValidationFailureMessages:Array;
    
    model_internal var _cre_datetimeIsValid:Boolean;
    model_internal var _cre_datetimeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _cre_datetimeIsValidCacheInitialized:Boolean = false;
    model_internal var _cre_datetimeValidationFailureMessages:Array;
    
    model_internal var _stamp_numberIsValid:Boolean;
    model_internal var _stamp_numberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _stamp_numberIsValidCacheInitialized:Boolean = false;
    model_internal var _stamp_numberValidationFailureMessages:Array;
    
    model_internal var _pro_skuIsValid:Boolean;
    model_internal var _pro_skuValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_skuIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_skuValidationFailureMessages:Array;
    
    model_internal var _pro_manufacturerIsValid:Boolean;
    model_internal var _pro_manufacturerValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_manufacturerIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_manufacturerValidationFailureMessages:Array;

    model_internal var _instance:_Super_VOProductMaster;
    model_internal static var _nullStyle:com.adobe.fiber.styles.Style = new com.adobe.fiber.styles.Style();

    public function _VOProductMasterEntityMetadata(value : _Super_VOProductMaster)
    {
        // initialize property maps
        if (model_internal::dependentsOnMap == null)
        {
            // depenents map
            model_internal::dependentsOnMap = new Object();
            model_internal::dependentsOnMap["pro_name"] = new Array();
            model_internal::dependentsOnMap["part_number"] = new Array();
            model_internal::dependentsOnMap["serialnumber"] = new Array();
            model_internal::dependentsOnMap["pro_oem"] = new Array();
            model_internal::dependentsOnMap["markup6"] = new Array();
            model_internal::dependentsOnMap["markup4"] = new Array();
            model_internal::dependentsOnMap["markup_type"] = new Array();
            model_internal::dependentsOnMap["markup5"] = new Array();
            model_internal::dependentsOnMap["netprice"] = new Array();
            model_internal::dependentsOnMap["pro_description"] = new Array();
            model_internal::dependentsOnMap["markup2"] = new Array();
            model_internal::dependentsOnMap["markup3"] = new Array();
            model_internal::dependentsOnMap["markup1"] = new Array();
            model_internal::dependentsOnMap["activestatus"] = new Array();
            model_internal::dependentsOnMap["bin_no"] = new Array();
            model_internal::dependentsOnMap["default_price"] = new Array();
            model_internal::dependentsOnMap["model_no"] = new Array();
            model_internal::dependentsOnMap["cre_datetime"] = new Array();
            model_internal::dependentsOnMap["qty_minimum"] = new Array();
            model_internal::dependentsOnMap["stamp_number"] = new Array();
            model_internal::dependentsOnMap["pro_sku"] = new Array();
            model_internal::dependentsOnMap["listprice"] = new Array();
            model_internal::dependentsOnMap["pro_manufacturer"] = new Array();
            model_internal::dependentsOnMap["currency_serialnumber"] = new Array();
            model_internal::dependentsOnMap["cre_userid"] = new Array();
            model_internal::dependentsOnMap["discount"] = new Array();
            model_internal::dependentsOnMap["markcode_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["pro_image_fk"] = new Array();
            model_internal::dependentsOnMap["pro_detserialnumber"] = new Array();

            // collection base map
            model_internal::collectionBaseMap = new Object()
        }

        model_internal::_instance = value;
        model_internal::_pro_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_name);
        model_internal::_pro_nameValidator.required = true;
        model_internal::_pro_nameValidator.requiredFieldError = "pro_name is required";
        //model_internal::_pro_nameValidator.source = model_internal::_instance;
        //model_internal::_pro_nameValidator.property = "pro_name";
        model_internal::_part_numberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPart_number);
        model_internal::_part_numberValidator.required = true;
        model_internal::_part_numberValidator.requiredFieldError = "part_number is required";
        //model_internal::_part_numberValidator.source = model_internal::_instance;
        //model_internal::_part_numberValidator.property = "part_number";
        model_internal::_pro_oemValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_oem);
        model_internal::_pro_oemValidator.required = true;
        model_internal::_pro_oemValidator.requiredFieldError = "pro_oem is required";
        //model_internal::_pro_oemValidator.source = model_internal::_instance;
        //model_internal::_pro_oemValidator.property = "pro_oem";
        model_internal::_markup_typeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForMarkup_type);
        model_internal::_markup_typeValidator.required = true;
        model_internal::_markup_typeValidator.requiredFieldError = "markup_type is required";
        //model_internal::_markup_typeValidator.source = model_internal::_instance;
        //model_internal::_markup_typeValidator.property = "markup_type";
        model_internal::_pro_descriptionValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_description);
        model_internal::_pro_descriptionValidator.required = true;
        model_internal::_pro_descriptionValidator.requiredFieldError = "pro_description is required";
        //model_internal::_pro_descriptionValidator.source = model_internal::_instance;
        //model_internal::_pro_descriptionValidator.property = "pro_description";
        model_internal::_bin_noValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForBin_no);
        model_internal::_bin_noValidator.required = true;
        model_internal::_bin_noValidator.requiredFieldError = "bin_no is required";
        //model_internal::_bin_noValidator.source = model_internal::_instance;
        //model_internal::_bin_noValidator.property = "bin_no";
        model_internal::_default_priceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForDefault_price);
        model_internal::_default_priceValidator.required = true;
        model_internal::_default_priceValidator.requiredFieldError = "default_price is required";
        //model_internal::_default_priceValidator.source = model_internal::_instance;
        //model_internal::_default_priceValidator.property = "default_price";
        model_internal::_model_noValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForModel_no);
        model_internal::_model_noValidator.required = true;
        model_internal::_model_noValidator.requiredFieldError = "model_no is required";
        //model_internal::_model_noValidator.source = model_internal::_instance;
        //model_internal::_model_noValidator.property = "model_no";
        model_internal::_cre_datetimeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCre_datetime);
        model_internal::_cre_datetimeValidator.required = true;
        model_internal::_cre_datetimeValidator.requiredFieldError = "cre_datetime is required";
        //model_internal::_cre_datetimeValidator.source = model_internal::_instance;
        //model_internal::_cre_datetimeValidator.property = "cre_datetime";
        model_internal::_stamp_numberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForStamp_number);
        model_internal::_stamp_numberValidator.required = true;
        model_internal::_stamp_numberValidator.requiredFieldError = "stamp_number is required";
        //model_internal::_stamp_numberValidator.source = model_internal::_instance;
        //model_internal::_stamp_numberValidator.property = "stamp_number";
        model_internal::_pro_skuValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_sku);
        model_internal::_pro_skuValidator.required = true;
        model_internal::_pro_skuValidator.requiredFieldError = "pro_sku is required";
        //model_internal::_pro_skuValidator.source = model_internal::_instance;
        //model_internal::_pro_skuValidator.property = "pro_sku";
        model_internal::_pro_manufacturerValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_manufacturer);
        model_internal::_pro_manufacturerValidator.required = true;
        model_internal::_pro_manufacturerValidator.requiredFieldError = "pro_manufacturer is required";
        //model_internal::_pro_manufacturerValidator.source = model_internal::_instance;
        //model_internal::_pro_manufacturerValidator.property = "pro_manufacturer";
    }

    override public function getEntityName():String
    {
        return model_internal::entityName;
    }

    override public function getProperties():Array
    {
        return model_internal::allProperties;
    }

    override public function getAssociationProperties():Array
    {
        return model_internal::allAssociationProperties;
    }

    override public function getRequiredProperties():Array
    {
         return model_internal::allRequiredProperties;   
    }

    override public function getDataProperties():Array
    {
        return model_internal::dataProperties;
    }

    override public function getGuardedProperties():Array
    {
        return model_internal::guardedProperties;
    }

    override public function getUnguardedProperties():Array
    {
        return model_internal::allAlwaysAvailableProperties;
    }

    override public function getDependants(propertyName:String):Array
    {
       if (model_internal::dataProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a data property of entity VOProductMaster");  
            
       return model_internal::dependentsOnMap[propertyName] as Array;  
    }

    override public function getDependedOnServices():Array
    {
        return model_internal::dependedOnServices;
    }

    override public function getCollectionProperties():Array
    {
        return model_internal::collectionProperties;
    }

    override public function getCollectionBase(propertyName:String):String
    {
        if (model_internal::collectionProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a collection property of entity VOProductMaster");  

        return model_internal::collectionBaseMap[propertyName];
    }

    override public function getAvailableProperties():com.adobe.fiber.valueobjects.IPropertyIterator
    {
        return new com.adobe.fiber.valueobjects.AvailablePropertyIterator(this);
    }

    override public function getValue(propertyName:String):*
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VOProductMaster");
        }

        return model_internal::_instance[propertyName];
    }

    override public function setValue(propertyName:String, value:*):void
    {
        if (model_internal::dataProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " is not a data property of entity VOProductMaster");
        }

        model_internal::_instance[propertyName] = value;
    }

    override public function getMappedByProperty(associationProperty:String):String
    {
        switch(associationProperty)
        {
            default:
            {
                return null;
            }
        }
    }

    override public function getPropertyLength(propertyName:String):int
    {
        switch(propertyName)
        {
            default:
            {
                return 0;
            }
        }
    }

    override public function isAvailable(propertyName:String):Boolean
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VOProductMaster");
        }

        if (model_internal::allAlwaysAvailableProperties.indexOf(propertyName) != -1)
        {
            return true;
        }

        switch(propertyName)
        {
            default:
            {
                return true;
            }
        }
    }

    override public function getIdentityMap():Object
    {
        var returnMap:Object = new Object();

        return returnMap;
    }

    [Bindable(event="propertyChange")]
    override public function get invalidConstraints():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_invalidConstraints;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_invalidConstraints;        
        }
    }

    [Bindable(event="propertyChange")]
    override public function get validationFailureMessages():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
    }

    override public function getDependantInvalidConstraints(propertyName:String):Array
    {
        var dependants:Array = getDependants(propertyName);
        if (dependants.length == 0)
        {
            return emptyArray;
        }

        var currentlyInvalid:Array = invalidConstraints;
        if (currentlyInvalid.length == 0)
        {
            return emptyArray;
        }

        var filterFunc:Function = function(element:*, index:int, arr:Array):Boolean
        {
            return dependants.indexOf(element) > -1;
        }

        return currentlyInvalid.filter(filterFunc);
    }

    /**
     * isValid
     */
    [Bindable(event="propertyChange")] 
    public function get isValid() : Boolean
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_isValid;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_isValid;
        }
    }

    [Bindable(event="propertyChange")]
    public function get isPro_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPart_numberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSerialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_oemAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMarkup6Available():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMarkup4Available():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMarkup_typeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMarkup5Available():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isNetpriceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_descriptionAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMarkup2Available():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMarkup3Available():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMarkup1Available():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isActivestatusAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isBin_noAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDefault_priceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isModel_noAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_datetimeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isQty_minimumAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isStamp_numberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_skuAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isListpriceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_manufacturerAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCurrency_serialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_useridAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isDiscountAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isMarkcode_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_image_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_detserialnumberAvailable():Boolean
    {
        return true;
    }


    /**
     * derived property recalculation
     */
    public function invalidateDependentOnPro_name():void
    {
        if (model_internal::_pro_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_name = null;
            model_internal::calculatePro_nameIsValid();
        }
    }
    public function invalidateDependentOnPart_number():void
    {
        if (model_internal::_part_numberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPart_number = null;
            model_internal::calculatePart_numberIsValid();
        }
    }
    public function invalidateDependentOnPro_oem():void
    {
        if (model_internal::_pro_oemIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_oem = null;
            model_internal::calculatePro_oemIsValid();
        }
    }
    public function invalidateDependentOnMarkup_type():void
    {
        if (model_internal::_markup_typeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfMarkup_type = null;
            model_internal::calculateMarkup_typeIsValid();
        }
    }
    public function invalidateDependentOnPro_description():void
    {
        if (model_internal::_pro_descriptionIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_description = null;
            model_internal::calculatePro_descriptionIsValid();
        }
    }
    public function invalidateDependentOnBin_no():void
    {
        if (model_internal::_bin_noIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfBin_no = null;
            model_internal::calculateBin_noIsValid();
        }
    }
    public function invalidateDependentOnDefault_price():void
    {
        if (model_internal::_default_priceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfDefault_price = null;
            model_internal::calculateDefault_priceIsValid();
        }
    }
    public function invalidateDependentOnModel_no():void
    {
        if (model_internal::_model_noIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfModel_no = null;
            model_internal::calculateModel_noIsValid();
        }
    }
    public function invalidateDependentOnCre_datetime():void
    {
        if (model_internal::_cre_datetimeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCre_datetime = null;
            model_internal::calculateCre_datetimeIsValid();
        }
    }
    public function invalidateDependentOnStamp_number():void
    {
        if (model_internal::_stamp_numberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfStamp_number = null;
            model_internal::calculateStamp_numberIsValid();
        }
    }
    public function invalidateDependentOnPro_sku():void
    {
        if (model_internal::_pro_skuIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_sku = null;
            model_internal::calculatePro_skuIsValid();
        }
    }
    public function invalidateDependentOnPro_manufacturer():void
    {
        if (model_internal::_pro_manufacturerIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_manufacturer = null;
            model_internal::calculatePro_manufacturerIsValid();
        }
    }

    model_internal function fireChangeEvent(propertyName:String, oldValue:Object, newValue:Object):void
    {
        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, propertyName, oldValue, newValue));
    }

    [Bindable(event="propertyChange")]   
    public function get pro_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_nameValidator() : StyleValidator
    {
        return model_internal::_pro_nameValidator;
    }

    model_internal function set _pro_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameIsValid():Boolean
    {
        if (!model_internal::_pro_nameIsValidCacheInitialized)
        {
            model_internal::calculatePro_nameIsValid();
        }

        return model_internal::_pro_nameIsValid;
    }

    model_internal function calculatePro_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_nameValidator.validate(model_internal::_instance.pro_name)
        model_internal::_pro_nameIsValid_der = (valRes.results == null);
        model_internal::_pro_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameValidationFailureMessages():Array
    {
        if (model_internal::_pro_nameValidationFailureMessages == null)
            model_internal::calculatePro_nameIsValid();

        return _pro_nameValidationFailureMessages;
    }

    model_internal function set pro_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get part_numberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get part_numberValidator() : StyleValidator
    {
        return model_internal::_part_numberValidator;
    }

    model_internal function set _part_numberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_part_numberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_part_numberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get part_numberIsValid():Boolean
    {
        if (!model_internal::_part_numberIsValidCacheInitialized)
        {
            model_internal::calculatePart_numberIsValid();
        }

        return model_internal::_part_numberIsValid;
    }

    model_internal function calculatePart_numberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_part_numberValidator.validate(model_internal::_instance.part_number)
        model_internal::_part_numberIsValid_der = (valRes.results == null);
        model_internal::_part_numberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::part_numberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::part_numberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get part_numberValidationFailureMessages():Array
    {
        if (model_internal::_part_numberValidationFailureMessages == null)
            model_internal::calculatePart_numberIsValid();

        return _part_numberValidationFailureMessages;
    }

    model_internal function set part_numberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_part_numberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_part_numberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get pro_oemStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_oemValidator() : StyleValidator
    {
        return model_internal::_pro_oemValidator;
    }

    model_internal function set _pro_oemIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_oemIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_oemIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_oemIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_oemIsValid():Boolean
    {
        if (!model_internal::_pro_oemIsValidCacheInitialized)
        {
            model_internal::calculatePro_oemIsValid();
        }

        return model_internal::_pro_oemIsValid;
    }

    model_internal function calculatePro_oemIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_oemValidator.validate(model_internal::_instance.pro_oem)
        model_internal::_pro_oemIsValid_der = (valRes.results == null);
        model_internal::_pro_oemIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_oemValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_oemValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_oemValidationFailureMessages():Array
    {
        if (model_internal::_pro_oemValidationFailureMessages == null)
            model_internal::calculatePro_oemIsValid();

        return _pro_oemValidationFailureMessages;
    }

    model_internal function set pro_oemValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_oemValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_oemValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_oemValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get markup6Style():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get markup4Style():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get markup_typeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get markup_typeValidator() : StyleValidator
    {
        return model_internal::_markup_typeValidator;
    }

    model_internal function set _markup_typeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_markup_typeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_markup_typeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "markup_typeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get markup_typeIsValid():Boolean
    {
        if (!model_internal::_markup_typeIsValidCacheInitialized)
        {
            model_internal::calculateMarkup_typeIsValid();
        }

        return model_internal::_markup_typeIsValid;
    }

    model_internal function calculateMarkup_typeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_markup_typeValidator.validate(model_internal::_instance.markup_type)
        model_internal::_markup_typeIsValid_der = (valRes.results == null);
        model_internal::_markup_typeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::markup_typeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::markup_typeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get markup_typeValidationFailureMessages():Array
    {
        if (model_internal::_markup_typeValidationFailureMessages == null)
            model_internal::calculateMarkup_typeIsValid();

        return _markup_typeValidationFailureMessages;
    }

    model_internal function set markup_typeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_markup_typeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_markup_typeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "markup_typeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get markup5Style():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get netpriceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get pro_descriptionStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_descriptionValidator() : StyleValidator
    {
        return model_internal::_pro_descriptionValidator;
    }

    model_internal function set _pro_descriptionIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_descriptionIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_descriptionIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionIsValid():Boolean
    {
        if (!model_internal::_pro_descriptionIsValidCacheInitialized)
        {
            model_internal::calculatePro_descriptionIsValid();
        }

        return model_internal::_pro_descriptionIsValid;
    }

    model_internal function calculatePro_descriptionIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_descriptionValidator.validate(model_internal::_instance.pro_description)
        model_internal::_pro_descriptionIsValid_der = (valRes.results == null);
        model_internal::_pro_descriptionIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_descriptionValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_descriptionValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionValidationFailureMessages():Array
    {
        if (model_internal::_pro_descriptionValidationFailureMessages == null)
            model_internal::calculatePro_descriptionIsValid();

        return _pro_descriptionValidationFailureMessages;
    }

    model_internal function set pro_descriptionValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_descriptionValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_descriptionValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get markup2Style():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get markup3Style():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get markup1Style():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get activestatusStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get bin_noStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get bin_noValidator() : StyleValidator
    {
        return model_internal::_bin_noValidator;
    }

    model_internal function set _bin_noIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_bin_noIsValid;         
        if (oldValue !== value)
        {
            model_internal::_bin_noIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "bin_noIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get bin_noIsValid():Boolean
    {
        if (!model_internal::_bin_noIsValidCacheInitialized)
        {
            model_internal::calculateBin_noIsValid();
        }

        return model_internal::_bin_noIsValid;
    }

    model_internal function calculateBin_noIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_bin_noValidator.validate(model_internal::_instance.bin_no)
        model_internal::_bin_noIsValid_der = (valRes.results == null);
        model_internal::_bin_noIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::bin_noValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::bin_noValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get bin_noValidationFailureMessages():Array
    {
        if (model_internal::_bin_noValidationFailureMessages == null)
            model_internal::calculateBin_noIsValid();

        return _bin_noValidationFailureMessages;
    }

    model_internal function set bin_noValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_bin_noValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_bin_noValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "bin_noValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get default_priceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get default_priceValidator() : StyleValidator
    {
        return model_internal::_default_priceValidator;
    }

    model_internal function set _default_priceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_default_priceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_default_priceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "default_priceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get default_priceIsValid():Boolean
    {
        if (!model_internal::_default_priceIsValidCacheInitialized)
        {
            model_internal::calculateDefault_priceIsValid();
        }

        return model_internal::_default_priceIsValid;
    }

    model_internal function calculateDefault_priceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_default_priceValidator.validate(model_internal::_instance.default_price)
        model_internal::_default_priceIsValid_der = (valRes.results == null);
        model_internal::_default_priceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::default_priceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::default_priceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get default_priceValidationFailureMessages():Array
    {
        if (model_internal::_default_priceValidationFailureMessages == null)
            model_internal::calculateDefault_priceIsValid();

        return _default_priceValidationFailureMessages;
    }

    model_internal function set default_priceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_default_priceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_default_priceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "default_priceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get model_noStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get model_noValidator() : StyleValidator
    {
        return model_internal::_model_noValidator;
    }

    model_internal function set _model_noIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_model_noIsValid;         
        if (oldValue !== value)
        {
            model_internal::_model_noIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "model_noIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get model_noIsValid():Boolean
    {
        if (!model_internal::_model_noIsValidCacheInitialized)
        {
            model_internal::calculateModel_noIsValid();
        }

        return model_internal::_model_noIsValid;
    }

    model_internal function calculateModel_noIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_model_noValidator.validate(model_internal::_instance.model_no)
        model_internal::_model_noIsValid_der = (valRes.results == null);
        model_internal::_model_noIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::model_noValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::model_noValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get model_noValidationFailureMessages():Array
    {
        if (model_internal::_model_noValidationFailureMessages == null)
            model_internal::calculateModel_noIsValid();

        return _model_noValidationFailureMessages;
    }

    model_internal function set model_noValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_model_noValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_model_noValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "model_noValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get cre_datetimeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get cre_datetimeValidator() : StyleValidator
    {
        return model_internal::_cre_datetimeValidator;
    }

    model_internal function set _cre_datetimeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_cre_datetimeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_cre_datetimeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeIsValid():Boolean
    {
        if (!model_internal::_cre_datetimeIsValidCacheInitialized)
        {
            model_internal::calculateCre_datetimeIsValid();
        }

        return model_internal::_cre_datetimeIsValid;
    }

    model_internal function calculateCre_datetimeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_cre_datetimeValidator.validate(model_internal::_instance.cre_datetime)
        model_internal::_cre_datetimeIsValid_der = (valRes.results == null);
        model_internal::_cre_datetimeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::cre_datetimeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::cre_datetimeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeValidationFailureMessages():Array
    {
        if (model_internal::_cre_datetimeValidationFailureMessages == null)
            model_internal::calculateCre_datetimeIsValid();

        return _cre_datetimeValidationFailureMessages;
    }

    model_internal function set cre_datetimeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_cre_datetimeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_cre_datetimeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get qty_minimumStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get stamp_numberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get stamp_numberValidator() : StyleValidator
    {
        return model_internal::_stamp_numberValidator;
    }

    model_internal function set _stamp_numberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_stamp_numberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_stamp_numberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "stamp_numberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get stamp_numberIsValid():Boolean
    {
        if (!model_internal::_stamp_numberIsValidCacheInitialized)
        {
            model_internal::calculateStamp_numberIsValid();
        }

        return model_internal::_stamp_numberIsValid;
    }

    model_internal function calculateStamp_numberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_stamp_numberValidator.validate(model_internal::_instance.stamp_number)
        model_internal::_stamp_numberIsValid_der = (valRes.results == null);
        model_internal::_stamp_numberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::stamp_numberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::stamp_numberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get stamp_numberValidationFailureMessages():Array
    {
        if (model_internal::_stamp_numberValidationFailureMessages == null)
            model_internal::calculateStamp_numberIsValid();

        return _stamp_numberValidationFailureMessages;
    }

    model_internal function set stamp_numberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_stamp_numberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_stamp_numberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "stamp_numberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_skuStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_skuValidator() : StyleValidator
    {
        return model_internal::_pro_skuValidator;
    }

    model_internal function set _pro_skuIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_skuIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_skuIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_skuIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_skuIsValid():Boolean
    {
        if (!model_internal::_pro_skuIsValidCacheInitialized)
        {
            model_internal::calculatePro_skuIsValid();
        }

        return model_internal::_pro_skuIsValid;
    }

    model_internal function calculatePro_skuIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_skuValidator.validate(model_internal::_instance.pro_sku)
        model_internal::_pro_skuIsValid_der = (valRes.results == null);
        model_internal::_pro_skuIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_skuValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_skuValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_skuValidationFailureMessages():Array
    {
        if (model_internal::_pro_skuValidationFailureMessages == null)
            model_internal::calculatePro_skuIsValid();

        return _pro_skuValidationFailureMessages;
    }

    model_internal function set pro_skuValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_skuValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_skuValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_skuValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get listpriceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get pro_manufacturerStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_manufacturerValidator() : StyleValidator
    {
        return model_internal::_pro_manufacturerValidator;
    }

    model_internal function set _pro_manufacturerIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_manufacturerIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_manufacturerIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_manufacturerIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_manufacturerIsValid():Boolean
    {
        if (!model_internal::_pro_manufacturerIsValidCacheInitialized)
        {
            model_internal::calculatePro_manufacturerIsValid();
        }

        return model_internal::_pro_manufacturerIsValid;
    }

    model_internal function calculatePro_manufacturerIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_manufacturerValidator.validate(model_internal::_instance.pro_manufacturer)
        model_internal::_pro_manufacturerIsValid_der = (valRes.results == null);
        model_internal::_pro_manufacturerIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_manufacturerValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_manufacturerValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_manufacturerValidationFailureMessages():Array
    {
        if (model_internal::_pro_manufacturerValidationFailureMessages == null)
            model_internal::calculatePro_manufacturerIsValid();

        return _pro_manufacturerValidationFailureMessages;
    }

    model_internal function set pro_manufacturerValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_manufacturerValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_manufacturerValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_manufacturerValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get currency_serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get cre_useridStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get discountStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get markcode_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get pro_image_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get pro_detserialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }


     /**
     * 
     * @inheritDoc 
     */ 
     override public function getStyle(propertyName:String):com.adobe.fiber.styles.IStyle
     {
         switch(propertyName)
         {
            default:
            {
                return null;
            }
         }
     }
     
     /**
     * 
     * @inheritDoc 
     *  
     */  
     override public function getPropertyValidationFailureMessages(propertyName:String):Array
     {
         switch(propertyName)
         {
            case("pro_name"):
            {
                return pro_nameValidationFailureMessages;
            }
            case("part_number"):
            {
                return part_numberValidationFailureMessages;
            }
            case("pro_oem"):
            {
                return pro_oemValidationFailureMessages;
            }
            case("markup_type"):
            {
                return markup_typeValidationFailureMessages;
            }
            case("pro_description"):
            {
                return pro_descriptionValidationFailureMessages;
            }
            case("bin_no"):
            {
                return bin_noValidationFailureMessages;
            }
            case("default_price"):
            {
                return default_priceValidationFailureMessages;
            }
            case("model_no"):
            {
                return model_noValidationFailureMessages;
            }
            case("cre_datetime"):
            {
                return cre_datetimeValidationFailureMessages;
            }
            case("stamp_number"):
            {
                return stamp_numberValidationFailureMessages;
            }
            case("pro_sku"):
            {
                return pro_skuValidationFailureMessages;
            }
            case("pro_manufacturer"):
            {
                return pro_manufacturerValidationFailureMessages;
            }
            default:
            {
                return emptyArray;
            }
         }
     }

}

}
